<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
   xmlns:th="http://www.thymeleaf.org"
   xmlns:winter="http://www.winter.org">
<body>
	<div th:fragment="grid-menu">
		<winter:tabbed-menu id="TabbedMenu" selected="Gestion" container="Menu" trigger="ShowMenu" closeonoutsideclick="true">
				<winter:tabbed-menu-group id="Gestion" type="list" title="Gestion" if="${beans.systemInfo.hasRole('grp:admin')}">
					<winter:tabbed-menu-item title="Gestionar Escribanos" text="Gestionar Escribanos" url="@{'/personas/escribano'}" if="${beans.systemInfo.hasRole('pag:personas')}">
					</winter:tabbed-menu-item>
					<winter:tabbed-menu-item title="Gestionar Personas" text="Gestionar Personas" url="@{'/personas/'}" if="${beans.systemInfo.hasRole('pag:personas')}">
					</winter:tabbed-menu-item>
					<winter:tabbed-menu-item title="Gestionar Vehiculos" text="Gestionar Vehiculos" url="@{'/vehiculos/'}" if="${beans.systemInfo.hasRole('pag:vehiculos')}">
					</winter:tabbed-menu-item>
					<winter:tabbed-menu-item title="Gestionar Inmuebles" text="Gestionar Inmuebles" url="@{'/inmuebles/'}" if="${beans.systemInfo.hasRole('pag:vehiculos')}">
					</winter:tabbed-menu-item>
					<winter:tabbed-menu-item title="Gestionar Templates" text="Gestionar Templates" url="@{'/templates/'}" if="${beans.systemInfo.hasRole('pag:templates')}">
					</winter:tabbed-menu-item>
					<winter:tabbed-menu-item title="Gestionar Controles" text="Gestionar Controles" url="@{'/controles/'}" if="${beans.systemInfo.hasRole('pag:controles')}">
					</winter:tabbed-menu-item>
				</winter:tabbed-menu-group>	
				<winter:tabbed-menu-group id="Referencia" type="list" title="Referencia" if="${beans.systemInfo.hasRole('grp:referencia')}">
					<winter:tabbed-menu-item title="Gestionar Localidades" text="Gestionar Localidades" url="@{'/departamentos/'}" if="${beans.systemInfo.hasRole('pag:localidades')}">
					</winter:tabbed-menu-item>					
				</winter:tabbed-menu-group>				
				<winter:tabbed-menu-group id="Administracion" type="list" title="Administracion" if="${beans.systemInfo.hasRole('grp:admin')}">
					<winter:tabbed-menu-item title="Gestionar Perfiles" text="Gestionar Perfiles" url="@{'/perfiles/'}" if="${beans.systemInfo.hasRole('pag:perfiles')}">
					</winter:tabbed-menu-item>
					<winter:tabbed-menu-item title="Gestionar Usuarios" text="Gestionar Usuarios" url="@{'/usuarios/'}" if="${beans.systemInfo.hasRole('pag:usuarios')}">
					</winter:tabbed-menu-item>
					<winter:tabbed-menu-item title="Gestionar Datos Complementarios" text="Gestionar Datos Complementarios" url="@{'/datosComp/'}" if="${beans.systemInfo.hasRole('pag:datosComp')}">
					</winter:tabbed-menu-item>
				</winter:tabbed-menu-group>			
		</winter:tabbed-menu>
	</div>
</body>
</html>